bitkeeper revision 1.1718.2.1 (42b548b7ux2RLNcFOrtdJXuEMvLNEw)
authoriap10@spot.cl.cam.ac.uk <iap10@spot.cl.cam.ac.uk>
Sun, 19 Jun 2005 10:28:07 +0000 (10:28 +0000)
committeriap10@spot.cl.cam.ac.uk <iap10@spot.cl.cam.ac.uk>
Sun, 19 Jun 2005 10:28:07 +0000 (10:28 +0000)
This patch allows user to choose mirror to get linux kernel source instead of getting it from kernel.org (which set as default)

BitKeeper/etc/logging_ok
Config.mk
buildconfigs/Rules.mk

index afc6cd647f51346389ac525553662d799074275a..0a5c65b3d95903b068f0260b9b56afbdf40dbbe3 100644 (file)
@@ -38,6 +38,7 @@ iap10@labyrinth.cl.cam.ac.uk
 iap10@nidd.cl.cam.ac.uk
 iap10@pb001.cl.cam.ac.uk
 iap10@pb007.cl.cam.ac.uk
+iap10@spot.cl.cam.ac.uk
 iap10@striker.cl.cam.ac.uk
 iap10@tetris.cl.cam.ac.uk
 jrb44@plym.cl.cam.ac.uk
index b3320b271160be4705eef3e8a8132e6bcb4ce336..390a9b3abedea5fdc3854ab25a53a608884b4855 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -31,3 +31,6 @@ endif
 
 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i)) 
 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
+
+# Choose the best mirror to download linux kernel
+KERNEL_REPO = http://www.kernel.org
index fe02b1e11bebe746402b86c15ee8aa581cf0126d..99b5ca050e6c5c3dfb7403341cbf73c4fa6a2b1d 100644 (file)
@@ -27,7 +27,7 @@ vpath linux-%.tar.bz2 $(LINUX_SRC_PATH)
 linux-%.tar.bz2: override _LINUX_VDIR = $(word 1,$(subst ., ,$*)).$(word 2,$(subst ., ,$*))
 linux-%.tar.bz2:
        @echo "Cannot find $@ in path $(LINUX_SRC_PATH)"
-       wget http://www.kernel.org/pub/linux/kernel/v$(_LINUX_VDIR)/$@ -O./$@
+       wget $(KERNEL_REPO)/pub/linux/kernel/v$(_LINUX_VDIR)/$@ -O./$@
 
 # Expand NetBSD release to NetBSD version
 NETBSD_RELEASE  ?= 2.0